/** 
 * FtpFileParserFactory.java
 * @author Lex
 * 2007-9-5 ����06:10:41
 */
package org.lex.net.ftp.parser;

public abstract class FTPFileParserFactory {
	private static final FTPFileParserFactory instance = new DefualtFTPFileParserFactory();

	public static FTPFileParserFactory getDefaultFactory() {
		return instance;
	}

	public abstract FTPFileParser getParser();

	private static class DefualtFTPFileParserFactory extends FTPFileParserFactory {
		private static final FTPFileParser DefaultParser = new DefaultFTPFileParser();

		public FTPFileParser getParser() {
			return DefaultParser;
		}
	}
}
